package com.ws.myweberp.dao;

import java.sql.Connection;
import java.sql.DriverManager;

public class PostgresConnection implements DAOConnection{
	
	Connection conn = null;
	
	 public Connection createConnection() {
		 try{
			 Class.forName("org.postgresql.Driver");
		     conn = DriverManager.getConnection("");
		 }catch(Exception e){
			 return null;
		 }finally{
			 
		 }
		 return conn;
	}
	 
	 public void closeConnection(){
		 if(conn != null){
			 try{
				 conn.close();
				 conn = null;
			 }catch(Exception e){
				 
			 }
		 }
	 }
}



